.class Lcom/estrongs/android/pop/utils/j$g;
.super Ljava/lang/Object;
.source "AppOperateHelper.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/utils/j;->c(Ljava/util/List;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Lcom/estrongs/android/pop/utils/j;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/utils/j;Ljava/util/List;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    iput-object p2, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 11

    .line 1
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 2
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 4
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 5
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 6
    :goto_0
    iget-object v5, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    if-ge v4, v5, :cond_4

    .line 7
    iget-object v5, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/y10;

    .line 8
    invoke-virtual {v5}, Les/y10;->p()Landroid/content/pm/ApplicationInfo;

    move-result-object v5

    if-nez v5, :cond_0

    goto/16 :goto_3

    .line 9
    :cond_0
    iget-object v6, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-interface {v6, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/y10;

    invoke-virtual {v6}, Lcom/estrongs/fs/a;->d()Ljava/lang/String;

    move-result-object v6

    .line 10
    iget-object v7, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    invoke-static {v7, v6}, Lcom/estrongs/android/pop/utils/j;->a(Lcom/estrongs/android/pop/utils/j;Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_3

    .line 11
    iget-object v7, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/y10;

    const/4 v8, 0x0

    .line 12
    iget-object v9, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    invoke-static {v9, v2, v6}, Lcom/estrongs/android/pop/utils/j;->a(Lcom/estrongs/android/pop/utils/j;Ljava/util/List;Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 13
    new-instance v8, Les/c70;

    iget-object v9, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    iget-object v9, v9, Lcom/estrongs/android/pop/utils/j;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v9}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v9

    invoke-direct {v8, v9, v7, v3}, Les/c70;-><init>(Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;Z)V

    .line 14
    invoke-virtual {v8, v3}, Les/s80;->b(Z)V

    .line 15
    invoke-virtual {v8}, Les/s80;->l()Les/u80;

    move-result-object v8

    goto :goto_1

    :cond_1
    const-string v9, "rw"

    .line 16
    invoke-static {v6, v9}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v9

    if-eqz v9, :cond_2

    .line 17
    new-instance v8, Les/c70;

    iget-object v10, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    iget-object v10, v10, Lcom/estrongs/android/pop/utils/j;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v10}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v10

    invoke-direct {v8, v10, v7, v3}, Les/c70;-><init>(Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;Z)V

    .line 18
    invoke-virtual {v8, v3}, Les/s80;->b(Z)V

    .line 19
    invoke-interface {v2, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 20
    invoke-virtual {v8}, Les/s80;->l()Les/u80;

    move-result-object v8

    :cond_2
    :goto_1
    if-eqz v8, :cond_3

    .line 21
    iget v7, v8, Les/u80;->a:I

    if-nez v7, :cond_3

    const-string v7, ".apk"

    invoke-virtual {v6, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_3

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v7

    const/4 v8, 0x4

    if-le v7, v8, :cond_3

    .line 22
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v9

    sub-int/2addr v9, v8

    invoke-virtual {v6, v3, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, ".odex"

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 23
    new-instance v7, Les/c70;

    iget-object v8, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    iget-object v8, v8, Lcom/estrongs/android/pop/utils/j;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v8}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v8

    new-instance v9, Lcom/estrongs/fs/m;

    sget-object v10, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    invoke-direct {v9, v6, v10}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;Lcom/estrongs/fs/l;)V

    invoke-direct {v7, v8, v9, v3}, Les/c70;-><init>(Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;Z)V

    .line 24
    invoke-virtual {v7, v3}, Les/s80;->b(Z)V

    const/4 v6, 0x1

    goto :goto_2

    :cond_3
    const/4 v6, 0x0

    .line 25
    :goto_2
    invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v6

    invoke-interface {v1, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 26
    iget-object v5, v5, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-interface {p2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 27
    iget-object v5, p0, Lcom/estrongs/android/pop/utils/j$g;->a:Ljava/util/List;

    invoke-interface {v5, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/y10;

    invoke-virtual {v5}, Lcom/estrongs/fs/m;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_3
    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    .line 28
    :cond_4
    :goto_4
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_5

    .line 29
    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, [Ljava/lang/String;

    .line 30
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->b([Ljava/lang/String;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_4

    .line 31
    :cond_5
    iget-object v2, p0, Lcom/estrongs/android/pop/utils/j$g;->b:Lcom/estrongs/android/pop/utils/j;

    iget-object v2, v2, Lcom/estrongs/android/pop/utils/j;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v2, p2, v0, v1}, Lcom/estrongs/android/pop/view/utils/b;->a(Landroid/app/Activity;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V

    .line 32
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
